<div id="add_service<?php echo $contract['contract_id']; ?>" class="zoom-anim-dialog relative popup_test_style">

<form name="submit-reciept" class="reciept" method="POST" action="service_vouchers.php">          
                        <div class="">
                          <h1>إضافة خدمة</h1>
                          <hr />
                          <div class="bookings-edit-container">
                          
                          
                            <div class="bookings-edit-row">
                            <table class="edit-bookings-table">
                                <tr>
                                      <td>التاريخ</td>
                                      <td>:&nbsp;<input readonly required type="text" class="small-input date-miladi-fixed" name="date"  id="dat-miladi-<?php echo $contract['contract_id'];?>" placeholder="" /></td> 
                                      <td>رقم السند</td>
                                      <td>:&nbsp;######</td>
                                  </tr>
                                  <tr>
                                      <td>الموافق</td>
                                      <td class="date_hijri">:&nbsp;</td>
                                      <td><input type="hidden" name="contract_id" class="contract_id small-input " value="<?php echo $contract['contract_id'];?>"/>
                                      </td>
                                      <td><input type="hidden" name="hijri-date" id="date_hijri" value="1"/> </td>
                                      <input type="hidden" name="checkout" id="" value="<?php if(isset($is_checkout)) { echo $is_checkout; }?>"/> 
                                  </tr> 
                                 
                                  <tr>
                                      <td>المستلم</td>
                                      <td>:&nbsp;<?php echo $_SESSION["login_user"];?><input type="hidden" required class="small-input" name="recipient" value="<?php echo $_SESSION["login_user"]?>"/></td>
                                  </tr>
                                  <tr>
                                    <td>استلمت من</td>
                                      <td><?php 
                                      if(!empty($contract['related_company']))
                                        echo $contract['related_company'].' - '. $contract['name'];
                                      else
                                        echo $contract['name'];
                                        ?></td>
                                        <input type="hidden" name="payeeee" value="<?php echo $contract['name']; ?>"> 
                                  </tr>
                                  <tr>
                                    <td>المبلغ </td>
                                      <td>:&nbsp;<input type="text" class="auto-input amout-paid" name="amount" value="0" /></td>
                                      <td>طريقة الدفع</td>
                                      <td>:&nbsp;
                                      <select required class="small-select" name="type">
                                        <?php
                                          $i = 0;
                                          foreach($payment_method as $method)
                                          {
                                            echo "<option value='{$i}'>{$method}</option>";
                                            $i++;
                                          }
                                        ?>
                                      </select>
                                      </td>
                                  </tr>
                                  <tr>
                                    <td>من أجل</td>
                                      <td>:&nbsp;<input required type="text" class="auto-input reason" name="reason" value="" /></td>
                                        
                                  </tr>
                                  <tr>
                                    <td>ملاحظات </td>
                                      <td><p class="text-right"><textarea id="" class="" style="" tabindex="19" cols="20" rows="2" name="notes"></textarea></p></td>
                                  </tr>
                            </table>       
                            </div>
                              
                            <div class="save-botton-2">إضافة</div>
                            <div class="mfp-close close-button" >x</div>
                         
                          </div>
                      </div>  
</form>
</div>